<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="利润汇总表" />
<%@ include file="../inc/PrintTitle.jsp"%>
<head>
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doCancel(){
		window.close();
	}
	function doPrint(){
		ShowConfirm('确认框','确定开始打印吗？',340,80,"doPrintCallBack()");
	}
	function doPrintCallBack(){
		if(popRetVal!=null){
			document.getElementById("noPrinSpan").style.display="none";
			printContent("管理易-利润汇总表","${enterpriseInfo.doPrint}","${enterpriseInfo.printWidth}");
			document.getElementById("noPrinSpan").style.display="";
		}
	}
</script>
</head>
<body style="background-color:#FFFFFF">
<table width="100%" border="0"  align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td height="40px" align="center" class="FontLarge_Bold">${licenseInfo.enterpriseName} 利润汇总表（${year}年）</td>
				</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="small_border">
				<tr class="ListTrPrint">
					<td width="9%" class="FontSmall_Bold" align="center">月份</td>
					<td width="13%" class="FontSmall_Bold" align="center">+合同</td>
					<td width="13%" class="FontSmall_Bold" align="center">+其他收入</td>
					<td width="13%" class="FontSmall_Bold" align="center">-外协</td>
					<td width="13%" class="FontSmall_Bold" align="center">-材料</td>
					<td width="13%" class="FontSmall_Bold" align="center">-费用</td>
					<td width="13%" class="FontSmall_Bold" align="center">+调账</td>
					<td width="13%" class="FontSmall_Bold" align="center">=利润</td>
				</tr>
				<c:forEach var="item" items="${list}" varStatus="i">
				<tr class="ListTrPrint">
					<td class="FontSmall" align="center">${i.index+1}</td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[0]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[1]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[2]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[3]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[4]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[5]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${item[6]}" /></td>
				</tr>
				</c:forEach>
				<tr class="ListTrPrint">
					<td class="FontSmall" align="center">合计</td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[0]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[1]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[2]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[3]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[4]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[5]}" /></td>
					<td class="FontSmall" align="center"><commonTag:parseBigDecimal source="${totalList[6]}" /></td>
				</tr>
		  </table>
		</td>
	</tr>
	<tr>
		<td height="3"></td>
	</tr>
	<tr id="noPrinSpan">
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr>
					<td>
						<input type="button" id="printButton" class="Button" value="开始打印 " onClick="doPrint();">
						<input type="button" id="cancelButton" class="Button" value=" 退 出 " onClick="doCancel();">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>